package org.projectwithoutname.ui.wizard.pages.composite;


import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.DateTime;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;

public class InfoSeasonComposite extends NameComposite {

	private Text comments = null, descriptionText = null;
	private Label descriptionLabel = null, commentLabel = null, dateBeginnerLabel = null, dateEndLabel = null;
	private DateTime begin, end;
	
	public InfoSeasonComposite(Composite parent, int style) {
		super(parent, style);
		initialize();
	}

	private void initialize() {
		descriptionLabel = new Label(this, SWT.NONE);
		descriptionLabel.setText("Resume:");
		super.putOnScreen(descriptionLabel, 80, 17);
		super.addLine(1, 3);
		descriptionText = new Text(this, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI | SWT.WRAP);
		descriptionText.setTextLimit(2048);
		super.putOnScreen(descriptionText, SWT.None, SWT.FILL, 350, 150, 4, 1);
		
		dateBeginnerLabel = new Label(this, SWT.NONE);
		dateBeginnerLabel.setText("Premier Date: ");
		super.putOnScreen(dateBeginnerLabel, 80, 17);
		begin = new DateTime(this, SWT.BORDER);
		super.putOnScreen(begin, 80, 20);
		
		dateEndLabel = new Label(this, SWT.NONE);
		dateEndLabel.setText("Finalized in: ");
		super.putOnScreen(dateEndLabel, 80, 17);
		end = new DateTime(this, SWT.NONE);
		super.putOnScreen(end, 80, 20);
		
		commentLabel = new Label(this, SWT.NONE);
		commentLabel.setText("Comments");
		super.putOnScreen(commentLabel, 80, 17);
		super.addLine(1, 3);
		comments = new Text(this, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.WRAP);
		comments.setTextLimit(1024);
		super.putOnScreen(comments, SWT.None, SWT.FILL, 200, 150, 4, 1);
		
		
	}
	
	public DateTime getDatePrimier(){
		return begin;
	}
	
	public DateTime getDateEnd(){
		return end;
	}
	
	public Text getDescription(){
		return descriptionText;
	}
	
	public Text getComments(){
		return comments;
	}
}
